package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AiDeepseekAnswerMapper;
import com.ruoyi.common.core.domain.entity.AiDeepseekAnswer;
import com.ruoyi.system.service.IAiDeepseekAnswerService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-06
 */
@Service
public class AiDeepseekAnswerServiceImpl implements IAiDeepseekAnswerService
{
    @Autowired
    private AiDeepseekAnswerMapper aiDeepseekAnswerMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AiDeepseekAnswer selectAiDeepseekAnswerById(Long id)
    {
        return aiDeepseekAnswerMapper.selectAiDeepseekAnswerById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param aiDeepseekAnswer 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<AiDeepseekAnswer> selectAiDeepseekAnswerList(AiDeepseekAnswer aiDeepseekAnswer)
    {
        return aiDeepseekAnswerMapper.selectAiDeepseekAnswerList(aiDeepseekAnswer);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param aiDeepseekAnswer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertAiDeepseekAnswer(AiDeepseekAnswer aiDeepseekAnswer)
    {
        aiDeepseekAnswer.setCreateTime(DateUtils.getNowDate());
        return aiDeepseekAnswerMapper.insertAiDeepseekAnswer(aiDeepseekAnswer);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param aiDeepseekAnswer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAiDeepseekAnswer(AiDeepseekAnswer aiDeepseekAnswer)
    {
        aiDeepseekAnswer.setUpdateTime(DateUtils.getNowDate());
        return aiDeepseekAnswerMapper.updateAiDeepseekAnswer(aiDeepseekAnswer);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekAnswerByIds(Long[] ids)
    {
        return aiDeepseekAnswerMapper.deleteAiDeepseekAnswerByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAiDeepseekAnswerById(Long id)
    {
        return aiDeepseekAnswerMapper.deleteAiDeepseekAnswerById(id);
    }
}
